Skip to content

reimplement: PathFindingState methods that are 100% - #266

Merged
TheRedDaemon merged 8 commits into
mainfrom
reimpl/PathFindingState-100
Oct 18, 2026
Merged

TheRedDaemon merged 8 commits into
mainfrom
reimpl/PathFindingState-100

Conversation

@gynt

@gynt gynt commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

100% matching but currently not always styled properly yet.

@TheRedDaemon
TheRedDaemon self-requested a review October 15, 2026 20:27
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/clearActiveClimbDataOfType6And7.cpp Outdated
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/clearPathFindingTileMaps.cpp Outdated
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/computeAttackVectorsBasedOnXAndY.cpp Outdated
Comment thread AGENTS.md Outdated
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/computeAttackVectorsBasedOnXAndY.cpp Outdated
Bring the twelve PathFindingState .cpp files that already match the original
binary to the style used on main, and verify every one of them still matches:

- drop the decompiler's comment blocks (decompilerscript, WARNING: Enum) and
  the duplicate include of the file's own .func.hpp
- clearActiveClimbDataOfType6And7: the two lockstep pointers over climbData
  become a counted for loop over named fields, the trailing return goes
- clearPathFindingTileMaps: sizeof(layer) instead of 0x27420/0x13a10, and the
  layer passed straight through instead of (void*)((int)(...))
- computeAttackVectorsBasedOnXAndY: iVar1/_index named, += 1 instead of
  x = x + 1, 80400 instead of 0x13a10, de-yoda'd bound test
- reflow the clearActiveClimbDataOfType6And7 doc comment

reccmp before and after: all twelve at 100.0%, normalized 100.0%.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/computeAttackVectorsBasedOnXAndY.cpp Outdated
Comment thread src/OpenSHC/Map/Navigation/PathFindingState/clearActiveClimbDataOfType6And7.cpp Outdated
@gynt
gynt requested a review from TheRedDaemon October 17, 2026 22:00
TheRedDaemon
TheRedDaemon previously approved these changes Oct 18, 2026
@TheRedDaemon
TheRedDaemon self-requested a review October 18, 2026 21:45
@TheRedDaemon
TheRedDaemon dismissed their stale review October 18, 2026 21:46

Found another thing

Comment thread status/addresses-SHC-3BB0A8C1.txt
Revert the 102 unrelated percentage/status updates in
status/addresses-SHC-3BB0A8C1.txt back to main, keeping only the four
addresses whose .cpp files are added or modified in this branch.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gynt
gynt force-pushed the reimpl/PathFindingState-100 branch from 545002b to 037fa05 Compare October 18, 2026 21:56
@TheRedDaemon
TheRedDaemon merged commit ee76b8d into main Oct 18, 2026
1 check passed
@TheRedDaemon
TheRedDaemon deleted the reimpl/PathFindingState-100 branch October 18, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants